package org.poptest.testng;

import java.util.Collection;

/**
 * @author Alan Roche
 *         Date: 06/02/11
 *         Time: 11:46
 */
public class Assert {
    public static void size(final Collection<?> collection, final int size) {
        org.testng.Assert.assertEquals(collection.size(), size,
                "Collection of type [" + collection.getClass().getName() + "] is invalid size, expected " +
                        size + ", actual " + collection.size() + "." );
    }
}
